package drg_group.taizhou_2022.MDC;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import drg_group.taizhou_2022.Base;
import drg_group.taizhou_2022.MedicalRecord;
import drg_group.taizhou_2022.ADRG.*;

public class MDCJ{
    public static String group(MedicalRecord record){
        String[] mdc_zd={"N64.300x001","D18.000x849","C43.500","L13.101","D36.716","L25.500","L02.900x002","B38.300","B35.003","L27.002","L65.902","B35.800x002","L27.000x004","L67.105","Q83.800x004","S30.003","T14.003","B86.x00x007","L98.800x022","L30.902","S80.800x012","D04.500","D22.601","L81.400x001","C44.501","L03.300","B86.x00x005","D18.000x847","D17.200x002","L20.801","I89.000x013","L98.802","S70.700x001","L98.400","L98.801","E51.100x005+I98.8*","L40.003","Z42.200x001","L72.000x011","E14.600x022","Q84.101","L90.500x049","Z41.100x010","L02.402","L91.002","L66.800","D48.500x002","L92.801","M54.002","L20.803","L60.800x030","L24.000","L53.200","D48.500x011","L98.800","S40.800x012","L60.800x021","T01.301","S70.800x021","T79.700","S30.800x001","D48.500x003","S39.910","L70.900","D22.500","L63.900","Q85.915","M34.000","L57.000","D22.901","L89.202","Q82.806","L89.007","L60.800x015","S50.901","N61.x06","T14.000x003","L85.804","C96.200x006","N64.804","L94.900","D03.504","D48.512","C50.001","L81.703","L10.300","R22.902","Z41.100x016","E11.600x970","C44.800","L95.802","S70.900x001","L03.003","T00.900x003","S30.000x004","D48.500x004","Z41.100x004","T09.000","L90.000","B37.200x003","L89.200","S40.000x001","N60.100x003","E11.600x023","L20.802","L89.304","L03.800","L72.800x001","L98.803","L23.700","Q18.902","S90.901","I97.200","L02.903","Z41.100x024","B00.101","L93.000","L94.301","E10.600x024","L41.400","D18.005","L83.x00","Q82.809","Z52.100","D23.503","Q82.504","D48.508","C43.605","C43.900","Q80.200x002","L67.104","R22.006","L01.100","N62.x01","L72.000x010","D05.100","I89.800x030","B36.000x003","B86.x00","N64.802","N60.201","T09.000x051","S30.900x003","L90.500x062","T13.000x021","A18.400x001","L02.203","C46.000","S30.100x004","S90.800x022","L08.905","L08.804","L63.000","S90.800x043","Q81.200","Q84.400","D04.800","L24.206","D17.500x010","E10.600x021","L57.803","Z42.302","D48.502","L08.900x028","D28.000x001","D86.300x002","L24.500","L90.500x040","L90.500x024","E14.600x024","L90.500x051","L43.000","L23.503","L23.501","C50.800","N64.503","D48.509","L30.901","E11.603+L99.8*","L72.800x004","T00.900x006","C50.801","D24.x01","L23.901","S30.801","S20.200","L11.800","D18.000x850","L24.201","S30.000x001","L08.911","L59.801","L41.500","S50.800x041","L74.000","L55.100","S90.200","T00.900x004","D22.602","L24.300","B35.100x002","L57.300","L08.000x009","D36.700x009","L12.000","B09.x01","C44.500","C43.502","L63.200","S70.800x041","L10.200","L90.504","S80.800x021","R21.x01","L92.301","D18.006","L23.002","Q82.810","B07.x00x008","L89.300","S60.800x012","L29.300","L85.801","Q84.600x003","T14.001","S60.000x001","L92.903","S60.800x032","B86.x00x003","B36.200x001","L81.600","B43.200","Q83.000","B00.100x005","B00.102","E11.600x021","L50.801","B37.201","L65.802","L50.000","N64.805","E50.801+L86*","L98.800x015","Z41.100x012","L73.800x006","D24.x00","L70.500","Q83.800x005","L90.300","L29.800","L70.000","B07.x00x011","I89.800x015","L60.800x024","D23.502","L21.800","L60.800x019","L85.900x001","R22.901","N60.801","I89.009","L24.400","L90.200","S40.900","N60.000x001","L08.904","L85.000","Q84.500","B72.x00","Q82.900","L24.200","L94.300","L90.500x021","L67.106","L66.200","L98.800x017","D48.503","L65.000","L40.000","L68.900","L24.203","A18.400x014","M31.000","L03.900","L41.900","L30.300","D18.007","L89.102","L89.204","S40.000x002","L60.800x023","A46.x00","L40.400","S20.802","L60.800x029","L60.800x017","D22.503","Z41.100x022","L91.900","L08.805","D03.600x002","S70.000","L74.001","C50.803","L65.800x005","S20.201","L74.100","S50.800x031","D03.601","L02.200x009","S90.800x011","Q82.800x001","D23.401","L94.000","L65.200","L89.900","L90.804","L30.301","S90.800x032","S90.800x042","L72.800x003","Q83.100x001","A18.407","L10.500","Q85.900x009","Q82.201","L81.700x002","C79.204","Q81.800","L02.401","L67.100","S40.800x022","L74.300","L60.800x007","T00.902","B00.100x004+H62.1*","Z41.100x002","D18.000x816","L60.500","T85.400","L03.105","S20.101","M79.401","Q83.802","S90.100","L81.300","D23.500x006","C43.506","L90.500x061","L90.500x027","L12.300","L89.306","S70.800x011","Q83.100","L72.101","Z41.100x011","C43.700x001","C43.800","Q82.508","L56.300","C44.502","L81.405","L60.201","L90.500x073","L95.100","L90.500x045","B07.x00x010","I89.100x002","L24.502","L21.002","C44.600","L08.902","B78.100x001+L99.8*","L03.302","R22.004","L51.802","L92.302","L60.800x026","L98.800x020","L95.900x001","L44.100","M79.802","S60.800x021","C44.605","L24.700","L02.900x001","M79.403","D48.501","L43.301","L30.903","L60.301","L98.800x012","L03.802","L90.500x058","C43.507","E10.600x028","L24.900","L60.800x013","L65.800x004","L30.800","L98.800x023","L13.000","B00.100","L23.100","D18.000x812","L02.801","S30.900x001","L40.300","S90.900x003","T14.000x011","S80.901","L90.901","L89.305","L01.001","S80.700","Q80.800x001","L50.803","L29.900","L85.900","S70.100","L57.500","L90.500x039","L89.107","T00.000x001","L68.800","L81.400","S80.800x011","L81.803","L81.401","L23.900","L70.203","L01.000x011","L89.108","Q82.100","Q82.000","A18.400x013","L90.500x010","Q18.301","L60.100","L03.102","L56.900","B35.500","Q82.200","C43.601","S31.001","Z41.100x018","R22.903","S90.800x013","Q82.805","N61.x07","L90.500x034","R22.402","L98.800x001","R23.400x001","T81.800x009","B37.900x001","L26.x01","Q85.900x028","S50.800x081","L82.x00","S80.800x043","B35.100","L90.500x065","L24.600","L72.904","D48.500x008","L02.100","Q83.803","E11.600x026","L73.100","S20.800x002","L72.103","C50.900","L12.103+H13.3*","S70.800x022","S30.002","M34.200","B86.x00x006","D04.900x001","Z42.200x003","S60.800x031","D23.501","D48.511","L24.800x002","T09.000x011","L08.001","L84.x00x001","L58.101","S60.900x002","D17.200x004","Z42.301","L08.909","T13.000","L90.500x053","N64.502","L93.001","L94.800","L30.400","R22.700x001","L02.200x010","L81.701","B88.000x006+L99.8*","Q82.803","D22.504","M79.811","N60.000","D23.601","L01.000x013","L40.301","L85.100","L87.800","L60.800x020","A18.410","T11.001","L23.502","Q85.900x049","Z42.401","L95.000","L74.200","L90.500x011","L90.500x018","L90.500x060","R22.300x002","L90.500x031","R21.x00x003","L98.804","S30.100x007","S30.800x002","D04.501","L53.000","Z41.100x015","L51.100","L68.100","L23.801","Q84.000","D22.505","L98.501","B45.200","N62.x00x007","L57.800x004","L65.903","L03.106","L98.300","L08.002","S20.301","N61.x05","C79.806","L73.803","B35.000x001","D17.900x002","T14.101","L12.202","L21.000","Z41.100x020","L03.001","L50.900","L25.000","L89.201","L08.907","S20.400x001","L29.801","L28.000x006","T14.000x021","L72.000x006","L60.800x031","D22.900x021","L44.400","L28.100","E10.603+L99.8*","L56.200","M79.404","N60.100x002","L67.102","L90.500x006","L94.200","L90.900x001","L30.804","I89.800x013","S50.000","L42.x00","B87.000x001+L99.8*","L50.400","D22.501","L41.100","L30.500","L91.800","Q83.900","A18.402","L05.000x001","L60.801","T09.000x021","L98.800x018","L98.000","L89.006","I89.800x024","L89.205","L21.900","L89.003","L03.109","L89.000","L81.802","I89.800x026","L05.900","L81.404","L56.400","L03.304","I89.800x028","L89.100","L11.900","L40.200","E50.800x002+L86*","R23.801","B88.000x004+L99.8*","L75.800","Z41.100x006","Z42.300x001","C79.200x001","L02.205","B37.202","L24.503","D23.500x010","D17.200x005","L94.500","L72.900x001","L90.502","L51.000","B07.x00x006","B37.900x002","L90.500x037","L84.x01","Z41.000","I89.900","L60.800x004","B43.000","L44.000","N61.x00x004","E11.600x025","D22.702","L93.200","L98.503","L01.000x012","C79.205","L10.000","L66.000","D05.900","Q83.200","T00.900x007","L72.905","S40.000x003","S70.901","B07.x04","L85.300","N61.x03","L08.801","C43.606","A18.400x022","L30.900","S30.100","L89.002","L90.500x036","L40.103","M79.400","L24.100","L70.201","S80.800x022","L53.801","Q80.400","D03.900","D18.008","S80.000","L56.800","L89.308","D05.000","D17.000x004","R22.005","L98.200","D23.505","S60.800x041","L02.800","B07.x01","C43.901","L25.300","L90.803","S90.800x023","L02.202","C79.200x005","S90.800x021","L73.802","Z41.100x008","Q80.900","S60.900","D22.510","B35.002","L89.101","L01.002","L08.800x011","L59.900","L90.500x057","Q82.503","L10.800x001","N64.200x001","N64.501","D23.400x003","S20.803","L89.105","S60.901","L90.500x015","R22.202","L81.500","C79.200","S30.700","Q85.801","L60.200","D22.600","Q84.202","L24.202","L98.800x027","R22.400x002","L12.201","L60.000","N63.x01","L60.800x010","L28.002","D04.503","I89.000x026","L41.300","N62.x00","Q84.300","D04.502","Q82.800x003","D17.301","L24.204","L43.200","M34.100","L64.000","S30.900x002","S70.800x012","D48.510","B09.x00x002","Q82.804","L90.500x072","L72.000x007","L92.800","T09.000x041","R23.800x002","D03.602","D17.300x002","B40.300","L28.202","R60.900x004","A18.405","D22.506","E10.600x026","A18.403","L44.800","S30.000x003","L43.800","L60.900","S80.900","C79.200x007","L02.403","L90.500x067","L57.400","D03.700x001","E10.600x023","L60.800x012","D18.000x018","L52.x00","M79.803","L94.100","R22.400x003","Z41.100x023","L27.101","L66.300","C44.506","D48.514","S50.900","Z42.203","R22.205","L57.200","Q81.100","L81.100","D48.601","D05.700","D48.516","N64.002","L60.800x028","R22.200x004","Q82.808","L90.500x026","L12.101","A18.400x021","L89.005","L73.800","L40.001","L90.805","L50.500","T00.600x001","L44.200","I89.000x015","B46.300x001+L99.8*","I89.800x014","S90.800x012","L12.900","A18.811","E11.600x027+L99.8*","L08.800x008","L13.900","I89.800x012","L20.806","L65.100","L50.200","C44.700","A36.300","L92.300","L70.005","D23.600x001","R23.800x001","R21.x00x004","M35.600","D22.700","T00.100x001","C44.702","T00.900","L89.206","L94.600","L89.302","T11.000x021","L28.001","T09.000x031","B35.801","L10.100","L56.401","M79.806","L90.500x047","B37.204","L87.200","B35.901","L30.203","L72.900x003","M54.001","Q83.100x002","D17.200x003","L73.000","L88.x00","L60.400","D22.508","D04.601","L29.100","S20.700","C43.602","L91.001","L55.900","I89.800x020","C50.804","L90.500x046","L90.500x042","L90.500x064","L70.803","L60.300","L74.801","L90.500x028","L53.300","L44.300","L25.201","L50.201","L90.500x035","Q82.801","R92.x00","L63.800","L70.001","D04.701","Q82.800x010","S40.800x021","L03.303","L05.901","Q82.501","L89.004","C50.200","D03.503","L93.201","S20.000","D22.900x017","B00.000","L27.800","S30.800x003","Z42.204","L98.500","L44.900","Z41.100x005","R22.207","Q80.200","L50.300","D48.513","L90.500x023","S30.001","D03.500","L30.802","Z42.402","D48.500x014","S30.101","T00.901","N64.200","L30.201","C43.705","C43.704","E51.100","Z42.200x002","M34.803","D23.600x002","L03.200","L10.800","C44.707","L70.400","S80.800x041","L50.600","R22.302","L56.000","L70.900x002","L65.800x003","L90.500x038","L81.800x003","S60.202","L98.502","L41.000x002","L40.101","L27.000x006","Q83.300","Q82.802","L74.400","S40.800x031","B37.205","L27.100","N61.x01","L27.003","L90.500x014","C50.900x005","Q84.600x002","Q81.900","L03.108","L08.000x001","L21.001","L98.700x001","L65.801","L21.100","E83.201","D23.700x002","L92.200","D17.300x001","L89.203","E14.600x028","L90.500x050","L60.800x027","L90.500x012","L70.100","D17.100x001","L81.403","C44.901","L97.x00","T00.200x001","L95.901","L73.900","L28.000","L02.901","L23.504","C50.400","S60.700","L12.100","D48.500x007","S90.800x041","Z41.100x014","L28.203","L71.000","L90.503","N61.x02","Z41.105","C50.800x005","R21.x00x001","L08.910","R22.100x002","L23.600","L98.401","E10.600x970","D23.506","N64.900","L02.300","L90.500x054","L60.800x034","B35.600x002","D48.500x009","S70.800x042","L24.504","L93.200x003","I89.000x017","Q82.807","D23.701","L08.901","L56.100","S60.800x022","D18.000x010","L27.200","L02.201","L08.908","B35.300","L90.500x066","L67.800","T00.800x001","Z42.400x001","L72.100","L60.802","L66.400","L90.500x059","Q82.507","L50.100","D03.501","L67.101","S50.700","S40.001","L82.x01","L87.001","L68.000","L41.801","T13.000x041","B35.001","N60.200","D22.511","Q81.000","B37.203","L67.900","D03.701","Q82.800x006","L81.200","N64.803","C44.503","L70.200","S90.000","N62.x00x001","C43.505","L02.200","L08.000x010","L25.100","Q80.100","L30.204","L63.100","L01.008","R22.200x002","C50.500","C43.707","A18.404","L95.800","S40.701","S90.800x033","T11.000x031","C44.507","L98.900x002","R22.300x001","C44.603","B35.600","S70.900x002","E14.600x023","L55.800","L72.000","L98.001","B36.300","C44.509","L03.104","N64.801","D17.300x004","L57.001","B36.000x001","L02.804","C43.508","Z41.100x013","T14.000x041","Q83.801","S80.800x031","L40.900","A18.401","L90.500x007","N60.100","L72.104","C43.604","L70.004","L90.902","L10.800x002","E10.600x025","D23.900","S50.800x021","T85.401","L08.003","L25.800","L03.801","L90.500x025","L55.200","Q80.800","L60.800x033","B00.804+L99.8*","C43.501","N61.x00x014","C44.602","L26.x00","L72.903","L40.102","L01.005","R22.000x005","L68.200","D48.500x006","B35.200","S60.801","L57.802","A18.400x020","R22.000x004","C50.901","L98.101","C43.603","L58.000","Q80.000","S39.911","S40.700","C44.706","Q82.800x019","R58.x02","S80.800x013","T11.000x041","Q80.300","D48.505","B88.001+L99.8*","S80.800x042","L98.800x021","C44.900","S80.800x032","D23.602","L92.000","S90.300x002","S90.700","L58.100","L81.801","L40.800","Q85.900x026","S30.104","D03.502","S20.200x003","E51.100x006","Q85.900","L73.804","L73.805","L72.105","D03.800","M79.807","D48.500x012","S70.800x032","S31.002","L51.200","L90.500x033","L40.802","D23.500","C44.504","S21.000","L03.103","Q85.900x024","T11.101","L41.000","L03.002","Q82.300","L89.307","D17.101","L53.900","Q82.506","T11.000x051","Z41.100x017","L87.900","L90.500x017","E14.600x026","L02.900x006","L90.500x013","R22.003","L70.003","L59.000","L70.002","C44.705","L25.900","Z41.100x003","Z42.202","L68.300","D17.200x001","R22.204","C44.505","L21.901","L30.803","A18.406","L71.100","L30.801","C43.600","L98.702","L67.103","L70.202","S60.800x011","N60.300","R22.200x001","A18.400x010","D48.507","L90.500x030","B35.000","R23.400x003","S90.800x031","Q84.900","L90.500x032","D23.504","M31.000x005","Z42.403","D22.701","D18.000x848","L95.800x004","S80.100x002","T13.000x031","L03.107","C44.701","L28.201","Q84.600x004","S30.800x004","C50.300","L64.801","L89.104","N64.100","L24.601","D23.700x001","L90.500x055","T01.800x001","L90.500x009","Z41.100x021","E05.906","L29.000","T00.300x001","B40.302+L99.8*","L40.500","L08.803","L22.x01","L08.800x005","L60.800x018","S60.800x042","L73.800x007","L90.500x020","L27.201","L11.100","L75.100","D17.500x011","Z42.800x001","L40.002","N61.x04","Z42.800x002","R22.002","L43.100","Q84.800x012","E14.600x027+L99.8*","L12.102+H13.3*","L84.x00x002","Z42.801","N60.000x002","S80.800x023","Q82.800x018","S70.700x002","B72.x00x001","L98.800x014","B40.301+L99.8*","L73.800x005","L08.000x007","L60.803","D22.507","I89.002","Q84.600x001","C43.503","A18.412","L53.101","D86.300","L02.902","L72.900x002","L81.402","L55.000","L03.306","Q84.801","R22.100x001","L94.400","C43.702","A60.100x002","L90.500x063","Q84.602","L72.106","L72.200","L13.100","R22.203","C50.000x001","C43.706","I89.800x025","L30.000","R60.900x003","D48.504","L60.800x009","L90.500x008","R22.904","L43.901","L90.501","I89.800x029","N62.x00x004","S40.800x032","L71.900","N60.900","B08.800x007","L08.903","L89.008","L08.000x006","L70.802","S90.300x003","L95.900","Z41.100x009","B36.300x002","L90.500x052","L23.000","Z42.100x001","A18.400x006","L90.500x029","D22.502","E10.600x027+L99.8*","S20.202","D04.504","Q85.900x022","L58.900","Q84.201","L90.500x043","B44.800x002","L13.901","R23.401","D48.515","S40.800x041","L27.900","L57.800x005","E11.600x024","L20.900","L60.800x032","D48.506","L93.100","L08.802","L90.500x074","Q85.900x025","L95.801","L75.200","L25.200","L60.800x025","L60.800x014","T14.000","L74.900","S90.900x002","L72.902","T13.000x011","D04.600x001","L30.904","L10.801","L92.100","D03.900x002","L12.200","L83.x02","B36.200","L24.800","L90.500x044","L10.400","L90.500x048","L27.005","L91.801","L85.200","L23.001","L05.000","D22.509","L50.202","D17.900x001","L90.500x016","L03.101","S60.800x023","L02.803","L93.202","C79.200x006","M79.805","Z42.205","I89.800x022","L90.500x022","L89.207","S60.800x033","E14.600x021","L85.800","L28.000x007","L03.004","L40.100","C43.600x002","R22.206","L81.900","L08.800x006","L67.000","Q84.601","L01.004","L02.206","D48.500x010","S50.101","L89.103","Z41.104","L90.600","L08.000x008","C44.508","L40.801","L00.x00","L71.800","D22.900x002","L30.100","L72.901","L81.601","L90.500x056","Q84.502","C44.704","D48.517","I89.800x027","S60.800x043","R21.x02","S60.902","A18.411","L73.200","L08.906","S40.800x042","D03.600","B35.800x004","A18.409","L75.900","L20.000","T00.900x005","E11.600x028","Q84.501","C44.601","L90.400","L24.205","B00.100x001","L25.400","L90.505","L65.901","C43.701","M79.801","L24.501","N61.x00x013","S60.100x001","D18.000x852","L60.800x008","C43.504","B07.x05","L03.000x015","R22.700x002","N64.400","A18.408","L64.900","E16.300x003+L54.8*","N60.202","L29.802","Q82.500x005","T14.002","L98.800x016","D48.600x001","Q84.200","C50.902","D22.900x003","L90.401","D17.100x003","R22.000x003","L90.800","D22.500x008","L89.303","S60.201","L98.800x007","L98.701","D18.000x851","L24.801","L81.407","L57.800x006","L30.202","D03.500x002","L22.x00","S50.800x011","L23.200","C43.900x003","L89.001","Z42.303","E14.600x025","Z42.304","L90.500x019","L27.801","L30.905","Q82.505","L90.100","B35.800x003","L08.900","L81.800x005","Q82.800x004","L23.101","L03.301","L08.100","E85.413+L99.0*","S90.300x001","L57.900","L30.500x003","B36.901","L98.800x013","C50.600","L98.800x026","M79.804","B41.800x002","L10.900","D03.700x002","S60.701","L02.200x004","L70.300","N60.101","L23.400","T14.000x031","T11.000","L90.801","L98.800x011","L43.902","L28.200","L81.000","L81.702","N63.x00","N60.400","S30.100x002","Z41.100x019","L90.500x041","M79.809","L80.x00","L57.801","S70.900x003","B36.100","L73.801","L23.500","L12.800","L24.901","L75.201","L53.100","L20.804","T13.000x051","L70.801","E14.600x970","B00.801+L99.8*","Q82.400","L98.600","B37.900x003","Q82.800x011","D18.000x828","L53.901","C43.703","L60.800x011","S50.701","D22.900","Q84.100","B07.x03","I89.000x004","L01.003","L60.800x006","N64.504","T00.900x002","S80.101","D48.500x005","S40.800x011","L11.000","S20.300x001","D17.100x002","L85.803","L57.100","L65.904","L72.102","L60.800x005","L27.004","L92.901","L24.800x001","S70.800x031","C50.000","L03.000","L03.305","L13.800","B86.x00x004","B35.400","C44.604","L23.300","Z42.201","L08.000x005","L02.802","L89.106","M54.003","C44.606","S80.800x033","L66.900","L50.802","L60.800x016","C44.703","L53.800","N64.001","N62.x02","Z41.100x007","L98.800x010","L51.900","D23.500x003","D17.300x005","S30.100x001","L89.208","C50.802","L75.000","L66.100","L30.400x004","S90.301","D24.x02","S20.801","L83.x01","C50.100","L90.500x071","C79.800x831","D04.700x001","L28.003","L89.301","Q82.502","L60.800x022","L81.800","L82.x02"};
        String[] dept_list={};
        if (!(true && Base.contains(mdc_zd,record.zdList[0]))){
            return "";
        }
        
        Base.groupMessages.putMessage(record.Index,"符合MDCJ入组条件，匹配规则：主诊断匹配");
        String result;

        result=JA1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JA2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JB1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JB2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JB3.group(record);
        if (result.length()>0){
            return result;
        }

        result=JC1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JD1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JD2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JJ1.group(record);
        if (result.length()>0){
            return result;
        }

        if (false && record.ssList!=null && record.ssList.length>0  && Base.intersect(Base.SS_VALID,record.ssList)){
            Base.groupMessages.putMessage(record.Index,"符合JQY入组条件，存在有效手术操作："+String.join(",",Base.Intersect(record.ssList,Base.SS_VALID)));
            return "JQY";
        }

        result=JR1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JR2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JS1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JS2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JT1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JU1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JV1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JV2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JZ1.group(record);
        if (result.length()>0){
            return result;
        }

        Base.groupMessages.putMessage(record.Index,"不符合MDCJ的ADRG入组条件");
        return "";
    }
}

